
import {BrowserRouter as Router,Route} from 'react-router-dom'
import Login from './Login'
import AdminIndex from './AdminIndex'
import React, { Component } from 'react'

export default class Main extends Component {
    render() {
        return (
            <div>
                <Router>
                    <Route path='/' exact component={Login}></Route>
                    <Route path='/AdminIndex' component={AdminIndex}></Route>
                </Router>
            </div>
        )
    }
}

